import pandas as pd

s = pd.Series([1, 2, 3], index=['a', 'b', 'c'])
d = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12], [13, 14, 15], [16, 17, 18]], columns=['a', 'b', 'c'])
d2 = pd.DataFrame(s)

print(s)
print(d.head())  # 预览前5行
print(d.describe())

# 读取文件(路径最好别带中文)
df=pd.read_csv("G:\iieproject\data_analysis\src\chapter2\data.csv", encoding="utf-8")
print(df)
